home *** CD-ROM | disk | FTP | other *** search
-
-
-
- tttt6666rrrreeeeccccvvvvffffrrrroooommmm((((3333NNNN)))) tttt6666rrrreeeeccccvvvvffffrrrroooommmm((((3333NNNN))))
-
-
-
- NNNNAAAAMMMMEEEE
- t6recvfrom - Read security attributes and data from a trusted endpoint
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- cccccccc [[[[ ffffllllaaaaggggssss ............ ]]]] ffffiiiilllleeee
-
- ####iiiinnnncccclllluuuuddddeeee <<<<ssssyyyyssss////tttt6666aaaattttttttrrrrssss....hhhh>>>>
-
- iiiinnnntttt tttt6666rrrreeeeccccvvvvffffrrrroooommmm((((iiiinnnntttt ffffdddd,,,, cccchhhhaaaarrrr ****bbbbuuuuffff,,,, iiiinnnntttt lllleeeennnn,,,, iiiinnnntttt ffffllllaaaaggggssss,,,,
- ssssttttrrrruuuucccctttt ssssoooocccckkkkaaaaddddddddrrrr ****ffffrrrroooommmm,,,, iiiinnnntttt ****ffffrrrroooommmmlllleeeennnn,,,,
- tttt6666aaaattttttttrrrr____tttt aaaattttttttrrrr____ppppttttrrrr,,,, tttt6666mmmmaaaasssskkkk____tttt ****nnnneeeewwww____aaaattttttttrrrrssss))));;;;
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _t_6_r_e_c_v_f_r_o_m receives data and its associated security attributes from a
- communication endpoint. The _f_r_o_m and _f_r_o_m_l_e_n parameters are only used if
- you wish to receive the source address for the data. This may not be
- applicable for some trusted endpoints. If not used, these fields should
- be set to _0. If _f_r_o_m is not a NULL pointer, the source address of the
- message is filled in. _f_r_o_m_l_e_n is a value-result parameter, initialized
- to the size of the buffer associated with _f_r_o_m, and modified on return to
- indicate the actual size of the address stored there. The length of the
- message is returned. If a message is too long to fit in the supplied
- buffer, excess bytes may be discarded depending on the type of socket the
- message is received from (see _s_o_c_k_e_t(_3_N)).
-
- The _f_l_a_g_s parameter is formed by ORing one or more of the following:
-
- MSG_OOB
- Read any out-of-band data present on the socket rather than the
- regular in-band data. If _a_t_t_r__p_t_r is non-NULL, out-of-band data
- security attributes are also retrieved.
-
- MSG_PEEK
- Peek at the data present on the socket; the data is returned, but
- not consumed, so that a subsequent receive operation will see the
- same data. If _a_t_t_r__p_t_r is non-NULL, security attributes of the data
- are also peeked.
-
- _a_t_t_r__p_t_r specifies a control structure in which to store those attributes
- the caller wishes to retrieve. To get an attribute from the control
- structure, see _t_6_g_e_t__a_t_t_r(_3_N). Any attribute that the receiving process
- does not care to receive may not be specified in the control structure.
- This minimizes the attribute translation time when passing the attributes
- out of the kernel.
-
- Note that the following attributes will never be returned in the argument
- _t_6_a_t_t_r__t: TTTT6666____NNNNAAAATTTT____CCCCAAAAVVVVEEEEAAAATTTTSSSS, TTTT6666____AAAACCCCLLLL, TTTT6666____IIIILLLL, TTTT6666____PPPPIIIIDDDD, TTTT6666____RRRREEEESSSSVVVV11110000,
- TTTT6666____AAAAUUUUDDDDIIIITTTT____IIIINNNNFFFFOOOO, TTTT6666____CCCCLLLLEEEEAAAARRRRAAAANNNNCCCCEEEE.
-
- If the _t_6_n_e_w__a_t_t_r(_3_N) call was made previously with a setting of ON, the
- security attributes of the received data will be returned only if they
- have changed from the last set read. *_n_e_w__a_t_t_r_s is set to the mask of
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- tttt6666rrrreeeeccccvvvvffffrrrroooommmm((((3333NNNN)))) tttt6666rrrreeeeccccvvvvffffrrrroooommmm((((3333NNNN))))
-
-
-
- those attributes actually returned. If new attributes are detected, all
- attributes requested by the receiving process are returned, not just
- those that have changed.
-
- Again, it is critical that the return value always be checked. It is the
- number of bytes actually received, or -_1 with the error code stored in
- _e_r_r_n_o. Revocation of access is possible if the received data changes to
- a level not accessible to the receiving process.
-
- RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEE
- _t_6_r_e_c_v_f_r_o_m returns the appropriate error code on failure, and the number
- of bytes read on successful completion.
-
- EEEERRRRRRRROOOORRRRSSSS
- [EBADF] _f_d is an invalid file descriptor.
-
- [EINTR] The operation was interrupted by delivery of a signal
- before any data was available to be received.
-
- [EIO] An I/O error occurred while reading from or writing to the
- file system.
-
- [ENOMEM] There was insufficient user memory available for the
- operation to complete.
-
- [ENOSR] There were insufficient STREAMS resources available for
- the operation to complete.
-
- [ENOTSOCK] ffffdddd is not a socket.
-
- [ESTALE] A stale NFS file handle exists.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- libt6(3N), t6get_attr(3N), t6sendto(3N).
-
- SSSSOOOOUUUURRRRCCCCEEEE
- Trusted Systems Interoperability Group
-
- NNNNOOOOTTTTEEEESSSS
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-
-
-
-